package com.fzh.bookstore.biz.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fzh.bookstore.biz.member.dto.MemberRequest;
import com.fzh.bookstore.biz.member.dto.RegisterRequest;
import com.fzh.bookstore.biz.member.entity.Member;
import com.fzh.bookstore.biz.member.mapper.MemberMapper;
import com.fzh.bookstore.biz.member.service.MemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fzh.bookstore.dto.SuperResponse;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author fang
 * @since 2021-02-26
 */
@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService {


    @Override
    public SuperResponse register(RegisterRequest request) {
        return null;
    }



    @Override
    public SuperResponse findMemberByUid(MemberRequest request) {
        SuperResponse response = new SuperResponse();
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("user_id",request.getUserId());
        response.setItem(wrapper);
        return response;
    }





}
